package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Dynastys;
import com.example.demo.entity.Poetry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PoetryMapper extends BaseMapper<Poetry> {

//    //查询古诗表里随机1条数据
//    @Select("select * from lv_writing_works where id = #{id}")
//    Poetry getRandomOne(@Param("id")Integer id);

}
